<!DOCTYPE html>
<!--suppress ALL-->
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>永和大王门店管理系统</title>
</head>
<body style="padding: 20px;">

<div style="padding: 5px;">
    <h1>永和大王门店管理系统-门店列表</h1>
</div>

<div>
    <table border="1" cellspacing="0">
        <tr align="center" style="font-weight: bold;">
            <td>序号</td>
            <td>门店名称</td>
            <td>联系电话</td>
            <td>操作</td>
        </tr>

            <tr th:each="door , indexStatus: ${doorList}">
                <td align="center" th:text="${indexStatus.index+1}"></td>
                <td th:text="${door.doorName}"></td>
                <td th:text="${door.tel}"></td>
                <td>
<!--                    <a href="toUpdate?id=${door.doorId}">修改门店</a>-->
<!--                    <a href="delete?id=${door.doorId}">删除门店</a>-->
                    <a th:href="@{/door/deleteByDoorId(id=${door.doorId})}">删除门店</a>
                    <a th:href="@{/door/toUpdateByDoorId(id=${door.doorId})}">修改门店</a>
                </td>
            </tr>
    </table>
</div>
</body>

</html>
